<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:83:"E:\phpset\phpSet\www\new shop\shop\public/../application/index\view\buyers\mod.html";i:1541751369;s:72:"E:\phpset\phpSet\www\new shop\shop\application\index\view\comm\left.html";i:1541827692;s:71:"E:\phpset\phpSet\www\new shop\shop\application\index\view\comm\map.html";i:1541764667;s:74:"E:\phpset\phpSet\www\new shop\shop\application\index\view\comm\iplock.html";i:1541756632;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <title>商城后台</title>
    <link rel="shortcut icon" href="/new shop/shop/public/static/favicon.ico">
    <link href="/new shop/shop/public/static/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="/new shop/shop/public/static/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="/new shop/shop/public/static/css/animate.min.css" rel="stylesheet">
    <link href="/new shop/shop/public/static/css/style.min.css?v=4.0.0" rel="stylesheet">
    <link href="/new shop/shop/public/static/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <script src="/new shop/shop/public/static/js/jquery.min.js?v=2.1.4"></script>
    <script src="/new shop/shop/public/static/layer/layer.js"></script>
    <script src="/new shop/shop/public/static/js/jia.js"></script>
    <script>
        // $(function(){
        //     //self.location.href="https://www.kancloud.cn/manual/thinkphp5/177529";
        //     $(window.parent.document).find("#iframe").attr("src", "https://www.kancloud.cn/manual/thinkphp5/177529");
        // });
    </script>
</head>
</html>


<body>
<div class="col-sm-6">
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>代理商添加</h5>
        </div>
        <div class="ibox-content">
            <form class="form-horizontal m-t" id="commentForm" action="<?php echo url('index/buyers/moddo'); ?>" method="post" >
                <div class="form-group">
                    <label class="col-sm-3 control-label">买家名称：</label>
                    <div class="col-sm-8">
                        <input  name="name"  type="text" class="form-control" required="" aria-required="true" value="<?php echo $user['name']; ?>">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">积分：</label>
                    <div class="col-sm-8">
                        <input  name="intergral"  type="text" class="form-control" required="" aria-required="true" value="<?php echo $user['intergral']; ?>">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">充值金额：</label>
                    <div class="col-sm-8">
                        <input  name="money"  type="text" class="form-control" required="" aria-required="true" value="<?php echo $user['money']; ?>">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">优惠券：</label>
                    <div class="col-sm-8">
                        <input  name="ticketid"  type="text" class="form-control" required="" aria-required="true" value="<?php echo $user['ticketid']; ?>">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">手机号：</label>
                    <div class="col-sm-8">
                        <input  name="iphone"  type="text" class="form-control" required="" aria-required="true" value="<?php echo $user['iphone']; ?>">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">邮箱：</label>
                    <div class="col-sm-8">
                        <input  name="email"  type="email" class="form-control" required="" aria-required="true" value="<?php echo $user['email']; ?>">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">登陆账号：</label>
                    <div class="col-sm-8">
                        <input  name="account"  type="text" class="form-control" required="" aria-required="true" value="<?php echo $user['account']; ?>">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">登陆密码：</label>
                    <div class="col-sm-8">
                        <input  name="root"  type="text" class="form-control" required="" aria-required="true" value="<?php echo $user['root']; ?>">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">店铺所在地区：</label>
                            
                    <div class="col-sm-8">
                            <input  name="locat" id="path"  type="text" class="form-control"  aria-required="true" value="<?php echo $path; ?>" readonly>
                     </div>
                <div class="form-group">
                    <input type="hidden" id="hid" name="hid" value="<?php echo $user['id']; ?>">
                    <input type="hidden" id="hjwd" name="hjwd" value="<?php echo $user['location']; ?>">
                   <html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
    <style type="text/css">
    body, html {width: 85%;height: 85%;margin:0;font-family:"微软雅黑";font-family:"微软雅黑";}
    #allmap{width:100%;height:400px;margin-left:29%;}
    p{margin-left:5px; font-size:14px;}
    </style>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=aYXdZGaErvo3Zc5IBtp2kVwkNL2k7iSo"></script>
</head>
<body>
<div id="allmap"></div>
</body>
</html>
<script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript">
    // 百度地图API功能
    var map = new BMap.Map("allmap");
    map.centerAndZoom(new BMap.Point(116.404, 39.915), 11);
    function showInfo(e){
        var jd = e.point.lng;
        var wd = e.point.lat;
        var id = $("#hid").val();
        $.post("showjwd",{jd:jd,wd:wd,id:id},function(data){

            var ress = data.split("|");
            $("#path").attr('value',ress[0]);
            $("#hjwd").val(ress[1]);
        });
       // alert(e.point.lng + ", " + e.point.lat);
    }
    map.addEventListener("click", showInfo);
</script>

                    <script type="text/javascript">
//根据本机IP锁定当前位置      
var point = new BMap.Point(116.331398,39.897445);
map.centerAndZoom(point,12);

function myFun(result){
    var cityName = result.name;
    map.setCenter(cityName);
}
var myCity = new BMap.LocalCity();
myCity.get(myFun); 
</script>
                    <div class="col-sm-4 col-sm-offset-3">
                        <button class="btn btn-primary" type="submit" name="submit">修改</button>
                    </div>
                </div>
            </form>
        </div>
    </div >
</div>
</body> 

